package com.ruoyi.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.school.mapper.EmploymentMapper;
import com.ruoyi.school.domain.Employment;
import com.ruoyi.school.service.IEmploymentService;

/**
 * 就业和薪资Service业务层处理
 * 
 * @author admin
 * @date 2023-09-03
 */
@Service
public class EmploymentServiceImpl implements IEmploymentService 
{
    @Autowired
    private EmploymentMapper employmentMapper;

    /**
     * 查询就业和薪资
     * 
     * @param id 就业和薪资主键
     * @return 就业和薪资
     */
    @Override
    public Employment selectEmploymentById(Integer id)
    {
        return employmentMapper.selectEmploymentById(id);
    }

    /**
     * 查询就业和薪资列表
     * 
     * @param employment 就业和薪资
     * @return 就业和薪资
     */
    @Override
    public List<Employment> selectEmploymentList(Employment employment)
    {
        return employmentMapper.selectEmploymentList(employment);
    }

    /**
     * 新增就业和薪资
     * 
     * @param employment 就业和薪资
     * @return 结果
     */
    @Override
    public int insertEmployment(Employment employment)
    {
        return employmentMapper.insertEmployment(employment);
    }

    /**
     * 修改就业和薪资
     * 
     * @param employment 就业和薪资
     * @return 结果
     */
    @Override
    public int updateEmployment(Employment employment)
    {
        return employmentMapper.updateEmployment(employment);
    }

    /**
     * 批量删除就业和薪资
     * 
     * @param ids 需要删除的就业和薪资主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentByIds(Integer[] ids)
    {
        return employmentMapper.deleteEmploymentByIds(ids);
    }

    /**
     * 删除就业和薪资信息
     * 
     * @param id 就业和薪资主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentById(Integer id)
    {
        return employmentMapper.deleteEmploymentById(id);
    }
}
